package service.subline;

import java.util.List;

import vo.SublineVO;
import dao.subline.SublineDAO;

public class SublineServiceImpl implements SublineService{

	private SublineDAO sublineDAO;

	public void setSublineDAO(SublineDAO sublineDAO) {
		this.sublineDAO = sublineDAO;
	}

	@Override
	public List<SublineVO> getSublineListOnLine(int line_no) throws Exception {
		return sublineDAO.getSublineListOnLine(line_no);
	}

	@Override
	public List<SublineVO> getSublineList() throws Exception {
		return sublineDAO.getSublineList();
	}

	@Override
	public void registerSubline(SublineVO param) throws Exception {
		sublineDAO.registerSubline(param);
	}

	@Override
	public void updateSubline(SublineVO param) throws Exception {
		sublineDAO.updateSubline(param);
	}

	@Override
	public void deleteSubline(int subline_no) throws Exception {
		sublineDAO.deleteSubline(subline_no);
	}
}
